<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">



<h:head>
</h:head>

<h:body style="font-size:12px;">
	<h:form>

		<p:panel>
			<center>
				Bem Vindo:
				<h:outputText value="#{loginBean.usuarioLogado.pessoaVO.nome}" />
			<p:commandButton value="Sair do Sistema"
					actionListener="#{loginBean.sair}" ajax="false" />
			</center>

		</p:panel>

		<f:metadata>
			<f:event type="preRenderView" listener="#{loginBean.validaLogin}" />
		</f:metadata>

		<p:dock>
			<p:menuitem value="Pagina Inicial" icon="/images/dock/iHome.png"
				url="index.jsf" />
			<p:menuitem value="Cadastrar" icon="/images/dock/cadastro.png"
				url="menuCadastro.jsf" />
			<p:menuitem value="Consultar" icon="/images/dock/consultar.png"
				url="menuConsulta.jsf" />
				
		</p:dock>

	</h:form>
</h:body>
</html>